// pages/appLetWork/work8/scenery/scenery.js
var i=1;
Page({
  data: {
    paging:"换一张",
    grid: [{ title: "宏伟的教学楼", img: "./images/1.jpg", }],
    grid_title:["宏伟的教学楼","北校区图书馆","图文信息楼"]
  },
  onClickLeft() {
    wx.navigateBack({
      delta: 1,
    })
  },

  paging(){
    i++
    this.setData({
      'grid[0].img':"./images/"+i+".jpg",
      'grid[0].title':this.data.grid_title[i-1]
    })
    if(i>2){
      i=0
    }
  },
})